package it.stasbranger.myproject.client.managed.ui;

import com.google.gwt.text.shared.AbstractRenderer;

import it.stasbranger.myproject.client.managed.request.RequestsProxy;
import it.stasbranger.myproject.client.managed.request.SuppliersHasRequestsProxy;
import it.stasbranger.myproject.client.managed.request.SuppliersProxy;

import it.stasbranger.myproject.client.scaffold.place.ProxyListPlace;

/**
 *
 */
public class ApplicationListPlaceRenderer extends AbstractRenderer<ProxyListPlace> {

	public String render(ProxyListPlace object) {

		return new it.stasbranger.myproject.client.managed.request.ApplicationEntityTypesProcessor<String>() {

			@Override
			public void handleSuppliers(SuppliersProxy isNull) {
				setResult("Supplierss");
			}

			@Override
			public void handleRequests(RequestsProxy isNull) {
				setResult("Requestss");
			}

			@Override
			public void handleSuppliersHasRequests(SuppliersHasRequestsProxy isNull) {
				setResult("SuppliersHasRequestss");
			}
		}.process(object.getProxyClass());
	}
}
